/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package chapter3;

/**
 *
 * @author Denise Carolina
 */
public class InitializationBlocks {

    InitializationBlocks(int x) {
        System.out.println("1 arg");
    }

    InitializationBlocks(){
        System.out.println("non - arg");
    }

    static{
        System.out.println("1st static");
    }

    {
        System.out.println("1st instance block");
    }

    {
        System.out.println("2nd instance block");
    }

    static {
        System.out.println("2nd static");
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        new InitializationBlocks();
        new InitializationBlocks(7);

    }

}
